package com.it.myd.service.main.module.map;

import com.it.myd.bean.box.Mark;
import com.it.myd.dao.main.module.mark.MarkDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MapServiceImpl implements MapService {

    @Autowired
    private MarkDao markDao;

    @Override
    public void insertMarket(Mark mark) {
        markDao.insertMark(mark);
    }

    @Override
    public List<Mark> getMarkByMark(Mark mark) {
        return markDao.getMarkByMark(mark);
    }

    @Override
    public void deleteMarket(Mark mark) {
        markDao.deleteMarkByMark(mark);
    }

    @Override
    public void changeMarket(Mark mark) {
        markDao.changeMarkByMark(mark);
    }
}
